package com.nbcio.modules.estar.order.service;

import com.nbcio.modules.estar.order.entity.ErpOrderB;
import com.nbcio.modules.estar.order.entity.ErpOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 订单
 * @Author: nbacheng
 * @Date:   2024-03-29
 * @Version: V1.0
 */
public interface IErpOrderService extends IService<ErpOrder> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(ErpOrder erpOrder,List<ErpOrderB> erpOrderBList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(ErpOrder erpOrder,List<ErpOrderB> erpOrderBList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public Result approvePass (String id) throws Exception;
}
